import {RouteRecordRaw} from 'vue-router'
export default function (framework, meta) {
    return {
        name: 'coupon', path: '/coupon', component: framework,
        children: (pre => [
            {
                name: `${pre}list`, path: 'list', meta: {...meta, title: '优惠券列表'},
                component: () => import('@/views/mall/coupon/CouponList.vue')
            },
            {
                name: `${pre}add`, path: 'add', meta: {...meta, title: '优惠券-添加'},
                component: () => import('@/views/mall/coupon/CouponForm.vue')
            },
            {
                name: `${pre}edit`, path: 'edit', meta: {...meta, title: '优惠券-编辑'},
                component: () => import('@/views/mall/coupon/CouponForm.vue')
            },
            // {
            //     name: `${pre}detail`, path: 'detail', meta: {...meta, title: '订单详情'},
            //     component: () => import('@/views/mall/order/OrderDetail.vue')
            // },
            // {
            //     name: `${pre}refund-list`, path: 'refund/list', meta: {...meta, title: '退款列表'},
            //     component: () => import('@/views/mall/order/OrderRefundList.vue')
            // },
            // {
            //     name: `${pre}goods`, path: 'goods/list', meta: {...meta, title: '订单商品'},
            //     component: () => import('@/views/mall/order/OrderGoodsList.vue')
            // },
        ])('coupon-')
    }
}